//推荐使用es module
import babelPlugin from 'rollup-plugin-babel';
//可以支持第三方模块
import pluginNodeResolve from '@rollup/plugin-node-resolve'
//支持commonjs
import pluginCommonjs from '@rollup/plugin-commonjs'
import pluginTypescript from '@rollup/plugin-typescript';
import { terser } from 'rollup-plugin-terser'
export default{
    input:"src/main.js",
    output:{
        file:"dist/bundle.cjs.js",//打包后的文件路径
        format:'iife',//打包后的输出格式
        globals:{
            lodash:"_",
            jquery:"$",//如果你引用jquery模块的话，去win.
        }
    },
    plugins:[
        rollupPluginBabel({
            exclude:
        })
    ]
}